import React from "react";
import { Loading } from "../Loading";
import styles from "./LoadingModal.module.css";

interface LoadingModalProps {
  /**
   * 颜色
   * @default #fff
   */
  color?: string;
  /**
   * 大小
   * @default 80
   */
  size?: number;
}

const LoadingModal: React.FC<LoadingModalProps> = ({ color, size }) => {
  return (
    <div className={styles.modal}>
      <Loading size={size} color={color} />
    </div>
  );
};

export default LoadingModal;
